cmake_minimum_required(VERSION 3.5)

project(quickTW LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


find_package(Qt5 COMPONENTS Core Quick Charts REQUIRED)
find_package(Qt5 REQUIRED COMPONENTS Core)

add_executable(quickTW
  main.cpp
  qml.qrc
  fonts/fonts.qrc
  fontmanager.h
  fontmanager.cpp
  ctrlclass/ctrl_hw.h
  ctrlclass/ctrl_hw.cpp
  hwclass/hw_th_class.h
  hwclass/hw_th_class.cpp
  hwclass/hw_motor_class.h
  hwclass/hw_motor_class.cpp

)

target_compile_definitions(quickTW PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)

target_link_libraries(quickTW PRIVATE Qt5::Core Qt5::Quick Qt5::Charts)









